package com.ruoyi.recipes.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 菜谱热门搜索对象 search_logs
 * 
 * @author syy
 * @date 2025-08-16
 */
public class SearchLogs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 搜索记录ID */
    private Long id;

    /** 用户ID（未登录可空） */
    @Excel(name = "用户ID", readConverterExp = "未=登录可空")
    private Integer userId;

    /** 用户搜索的关键词 */
    @Excel(name = "用户搜索的关键词")
    private String keyword;


    /** 是否删除：0正常 1删除 */
    private Integer del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setKeyword(String keyword) 
    {
        this.keyword = keyword;
    }

    public String getKeyword() 
    {
        return keyword;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("keyword", getKeyword())
            .append("createTime", getCreateTime())
            .append("del", getDel())
            .toString();
    }
}
